import 'package:lai_zhan/common/model/userResult/user_result.dart';
import 'package:lai_zhan/common/model/shopResult/shop_result.dart';
import 'package:lai_zhan/common/model/powerResult/power_result.dart';
import 'package:lai_zhan/common/model/activity/activity.dart';
import 'package:lai_zhan/common/redux/ShopRedux.dart';
import 'package:lai_zhan/common/redux/UserRedux.dart';
import 'package:lai_zhan/common/redux/ActivityRedux.dart';



class AppState {
  //用户信息
  UserResult userInfo;
  //店铺列表
  List<ShopResult> shops;
  //活动
  List<Activity> activitys;

  AppState({this.userInfo,this.shops,this.activitys});


}

AppState appReducer(AppState state,action) {
  return AppState(
    userInfo: UserReducer(state.userInfo,action),
    shops: ShopReducer(state.shops,action),
    activitys: ActivityReducer(state.activitys,action)
  );
}